package org.xlx.xlx_oa.warehouse.domain;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.xlx.xlx_oa.common.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "WarehouseDistributor对象", description = "")
public class WarehouseDistributor extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "经销商id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "经销商公司名称")
    private String companyName;

    @ApiModelProperty(value = "经销商公司代码")
    private String companyCode;

    @ApiModelProperty(value = "经销商公司地址")
    private String companyAddress;

    @ApiModelProperty(value = "联系人")
    private String contactPerson;

    @ApiModelProperty(value = "联系电话")
    private String contactPhone;

    @ApiModelProperty(value = "联系固话")
    private String contactFixed;

    @ApiModelProperty(value = "联系传真")
    private String contactFax;

    @ApiModelProperty(value = "联系邮箱")
    private String contactEmail;

    @ApiModelProperty(value = "联系邮编")
    private String contactZip;

    @ApiModelProperty(value = "合作状态")
    private String cooperationStatus;

    @ApiModelProperty(value = "合作时间")
    @TableField(strategy = FieldStrategy.IGNORED)
    private LocalDateTime cooperationTime;

    @ApiModelProperty(value = "终止时间")
    @TableField(strategy = FieldStrategy.IGNORED)
    private LocalDateTime closureTime;

    @ApiModelProperty(value = "终止原因")
    @TableField(strategy = FieldStrategy.IGNORED)
    private String closureReason;
}
